package com.ruoyi.map.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保障房建筑区域信息数据对象 region_info
 *
 * @author dihang
 * @date 2023-07-25
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegionInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 保障房建筑区域主键ID
     */
    @ApiModelProperty(value = "保障房建筑区域主键ID ")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 对应小区id
     */
    @ApiModelProperty(value = "对应小区id ")
    @Excel(name = "对应小区id")
    private Long villageId;
    /**
     * 保障房建筑区域名称
     */
    @ApiModelProperty(value = "保障房建筑区域名称 ")
    @Excel(name = "保障房建筑区域名称")
    private String name;
    /**
     * 保障房建筑区域X坐标
     */
    @ApiModelProperty(value = "保障房建筑区域X坐标 ")
    @Excel(name = "保障房建筑区域X坐标")
    private BigDecimal XCoordinate;
    /**
     * 保障房建筑区域Y坐标
     */
    @ApiModelProperty(value = "保障房建筑区域Y坐标 ")
    @Excel(name = "保障房建筑区域Y坐标")
    private BigDecimal YCoordinate;
    /**
     * 保障房建筑区域包含楼栋数量
     */
    @ApiModelProperty(value = "保障房建筑区域包含楼栋数量 ")
    @TableField(exist = false)
    @Excel(name = "保障房建筑区域包含楼栋数量")
    private Integer includeBuildingNum;
    /**
     * 保障房建筑区域包含楼栋名称
     */
    @ApiModelProperty(value = "保障房建筑区域包含楼栋名称 ")
    @TableField(exist = false)
    @Excel(name = "保障房建筑区域包含楼栋名称")
    private List<String > includeBuildingName;
    /**
     * 所属保障房建筑小区
     */
    @ApiModelProperty(value = "所属保障房建筑小区 ")
    @Excel(name = "所属保障房建筑小区")
    private String affiliationVillage;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("villageId", getVillageId())
                .append("name", getName())
                .append("xCoordinate", getXCoordinate())
                .append("yCoordinate", getYCoordinate())
                .append("includeBuildingNum", getIncludeBuildingNum())
                .append("includeBuildingName", getIncludeBuildingName())
                .append("affiliationVillage", getAffiliationVillage())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("deleted", getDeleted())
                .toString();
    }
}
